package com.example.sp01.entity;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;

@Table(name = "part") // 使用反引号转义SQL关键字
public class part {
    @Id
    @Column(name = "Gno")
    private Integer gno; // 组号
    
    @Column(name = "Gname")
    private String gname; // 组名
    
    @Column(name = "Gtext")
    private String gtext; // 备注

    public part() {}

    public part(Integer gno, String gname, String gtext) {
        this.gno = gno;
        this.gname = gname;
        this.gtext = gtext;
    }

    public Integer getGno() {
        return gno;
    }

    public void setGno(Integer gno) {
        this.gno = gno;
    }

    public String getGname() {
        return gname;
    }

    public void setGname(String gname) {
        this.gname = gname;
    }

    public String getGtext() {
        return gtext;
    }

    public void setGtext(String gtext) {
        this.gtext = gtext;
    }
}